\hypertarget{array_8c}{}\doxysubsection{extern/libembroidery/src/array.c File Reference}
\label{array_8c}\index{extern/libembroidery/src/array.c@{extern/libembroidery/src/array.c}}
{\ttfamily \#include $<$stdio.\+h$>$}\newline
{\ttfamily \#include $<$stdlib.\+h$>$}\newline
{\ttfamily \#include $<$string.\+h$>$}\newline
{\ttfamily \#include \char`\"{}embroidery\+\_\+internal.\+h\char`\"{}}\newline
\doxysubsubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$ \mbox{\hyperlink{array_8c_a67090c780a2818616877fb42b3a42e5c}{emb\+Array\+\_\+create}} (int type)
\item 
int \mbox{\hyperlink{array_8c_a50c23acfd8e099acd98cc99bc01801ab}{emb\+Array\+\_\+resize}} (\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$a)
\item 
void \mbox{\hyperlink{array_8c_a60f927b9cef227b5c19a8625580a9bad}{emb\+Array\+\_\+copy}} (\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$dst, \mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$src)
\item 
int \mbox{\hyperlink{array_8c_a962196043b716654439ba3d8bd306f64}{emb\+Array\+\_\+add\+Arc}} (\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$a, \mbox{\hyperlink{embroidery_8h_a09945e6e919629c5787e61582c712ba1}{Emb\+Arc}} b)
\item 
int \mbox{\hyperlink{array_8c_aa5e33f49a954b6519c3a05217d850a3e}{emb\+Array\+\_\+add\+Circle}} (\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$a, \mbox{\hyperlink{embroidery_8h_a87fc13ccd4dbaa7de7c85efde17bba0e}{Emb\+Circle}} b)
\item 
int \mbox{\hyperlink{array_8c_a2304cb63de8ef8fe3c922b3a12379bd8}{emb\+Array\+\_\+add\+Ellipse}} (\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$a, \mbox{\hyperlink{embroidery_8h_a4e48ebde5bd4d82b875f98b347bdd62c}{Emb\+Ellipse}} b)
\item 
int \mbox{\hyperlink{array_8c_a4dfd8819459125dcf1cdadca56a9ffa9}{emb\+Array\+\_\+add\+Flag}} (\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$a, \mbox{\hyperlink{embroidery_8h_aa8d187896cf7654438e8108ea481b11a}{Emb\+Flag}} b)
\item 
int \mbox{\hyperlink{array_8c_a776545527fb7995f227fe97dac89718a}{emb\+Array\+\_\+add\+Line}} (\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$a, \mbox{\hyperlink{embroidery_8h_a62e08237073617de993166ed4a9ab085}{Emb\+Line}} b)
\item 
int \mbox{\hyperlink{array_8c_a756ba04d08ed40f6b20c3021876fa53b}{emb\+Array\+\_\+add\+Path}} (\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$a, \mbox{\hyperlink{embroidery_8h_af29045dfeebafdcb66d114b390c4a686}{Emb\+Path}} b)
\item 
int \mbox{\hyperlink{array_8c_a5adb6549f01b7f271bf8acd2cdc5da33}{emb\+Array\+\_\+add\+Point}} (\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$a, \mbox{\hyperlink{embroidery_8h_a835ccc3aedf71b57dca6130be87ea463}{Emb\+Point}} b)
\item 
int \mbox{\hyperlink{array_8c_a7fe0b8d0f83a3ed40ab37e9b93b8f4af}{emb\+Array\+\_\+add\+Polyline}} (\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$a, \mbox{\hyperlink{embroidery_8h_ab5563c868d8f8174d5be764808a647dd}{Emb\+Polyline}} b)
\item 
int \mbox{\hyperlink{array_8c_a7d4a63ac1958f13197dd7e7fd94f5d62}{emb\+Array\+\_\+add\+Polygon}} (\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$a, \mbox{\hyperlink{embroidery_8h_a2d6988a5f4ba24d26c7eff65dbc9d029}{Emb\+Polygon}} b)
\item 
int \mbox{\hyperlink{array_8c_a8d7d2de889cb8778bf80a6c776fb9938}{emb\+Array\+\_\+add\+Rect}} (\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$a, \mbox{\hyperlink{embroidery_8h_ac2f33b151fc40a0da3b14379aa0ec653}{Emb\+Rect}} b)
\item 
int \mbox{\hyperlink{array_8c_a1d13609cda6e94f68c1bb7f21fab2cb1}{emb\+Array\+\_\+add\+Stitch}} (\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$a, \mbox{\hyperlink{embroidery_8h_ae92ded87da0dcaaae8f7c7bc880fd1b0}{Emb\+Stitch}} b)
\item 
int \mbox{\hyperlink{array_8c_ae7afecc6b39df1016ccda59227922483}{emb\+Array\+\_\+add\+Vector}} (\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$a, \mbox{\hyperlink{embroidery_8h_a16fa26764453571074cb85a7574738d4}{Emb\+Vector}} b)
\item 
void \mbox{\hyperlink{array_8c_a2c70d3ca840560a5f9884f63f06f15bf}{emb\+Array\+\_\+free}} (\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$a)
\end{DoxyCompactItemize}


\doxysubsubsection{Function Documentation}
\mbox{\Hypertarget{array_8c_a962196043b716654439ba3d8bd306f64}\label{array_8c_a962196043b716654439ba3d8bd306f64}} 
\index{array.c@{array.c}!embArray\_addArc@{embArray\_addArc}}
\index{embArray\_addArc@{embArray\_addArc}!array.c@{array.c}}
\doxyparagraph{\texorpdfstring{embArray\_addArc()}{embArray\_addArc()}}
{\footnotesize\ttfamily int emb\+Array\+\_\+add\+Arc (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$}]{a,  }\item[{\mbox{\hyperlink{embroidery_8h_a09945e6e919629c5787e61582c712ba1}{Emb\+Arc}}}]{b }\end{DoxyParamCaption})}

Add an arc {\itshape b} to the Emb\+Array {\itshape a} and it returns if the element was successfully added. \mbox{\Hypertarget{array_8c_aa5e33f49a954b6519c3a05217d850a3e}\label{array_8c_aa5e33f49a954b6519c3a05217d850a3e}} 
\index{array.c@{array.c}!embArray\_addCircle@{embArray\_addCircle}}
\index{embArray\_addCircle@{embArray\_addCircle}!array.c@{array.c}}
\doxyparagraph{\texorpdfstring{embArray\_addCircle()}{embArray\_addCircle()}}
{\footnotesize\ttfamily int emb\+Array\+\_\+add\+Circle (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$}]{a,  }\item[{\mbox{\hyperlink{embroidery_8h_a87fc13ccd4dbaa7de7c85efde17bba0e}{Emb\+Circle}}}]{b }\end{DoxyParamCaption})}

Add a circle {\itshape b} to the Emb\+Array {\itshape a} and it returns if the element was successfully added. \mbox{\Hypertarget{array_8c_a2304cb63de8ef8fe3c922b3a12379bd8}\label{array_8c_a2304cb63de8ef8fe3c922b3a12379bd8}} 
\index{array.c@{array.c}!embArray\_addEllipse@{embArray\_addEllipse}}
\index{embArray\_addEllipse@{embArray\_addEllipse}!array.c@{array.c}}
\doxyparagraph{\texorpdfstring{embArray\_addEllipse()}{embArray\_addEllipse()}}
{\footnotesize\ttfamily int emb\+Array\+\_\+add\+Ellipse (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$}]{a,  }\item[{\mbox{\hyperlink{embroidery_8h_a4e48ebde5bd4d82b875f98b347bdd62c}{Emb\+Ellipse}}}]{b }\end{DoxyParamCaption})}

Add an ellipse {\itshape b} to the Emb\+Array {\itshape a} and it returns if the element was successfully added. \mbox{\Hypertarget{array_8c_a4dfd8819459125dcf1cdadca56a9ffa9}\label{array_8c_a4dfd8819459125dcf1cdadca56a9ffa9}} 
\index{array.c@{array.c}!embArray\_addFlag@{embArray\_addFlag}}
\index{embArray\_addFlag@{embArray\_addFlag}!array.c@{array.c}}
\doxyparagraph{\texorpdfstring{embArray\_addFlag()}{embArray\_addFlag()}}
{\footnotesize\ttfamily int emb\+Array\+\_\+add\+Flag (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$}]{a,  }\item[{\mbox{\hyperlink{embroidery_8h_aa8d187896cf7654438e8108ea481b11a}{Emb\+Flag}}}]{b }\end{DoxyParamCaption})}

Add a flag {\itshape b} to the Emb\+Array {\itshape a} and it returns if the element was successfully added. \mbox{\Hypertarget{array_8c_a776545527fb7995f227fe97dac89718a}\label{array_8c_a776545527fb7995f227fe97dac89718a}} 
\index{array.c@{array.c}!embArray\_addLine@{embArray\_addLine}}
\index{embArray\_addLine@{embArray\_addLine}!array.c@{array.c}}
\doxyparagraph{\texorpdfstring{embArray\_addLine()}{embArray\_addLine()}}
{\footnotesize\ttfamily int emb\+Array\+\_\+add\+Line (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$}]{a,  }\item[{\mbox{\hyperlink{embroidery_8h_a62e08237073617de993166ed4a9ab085}{Emb\+Line}}}]{b }\end{DoxyParamCaption})}

Add a line {\itshape b} to the Emb\+Array {\itshape a} and it returns if the element was successfully added. \mbox{\Hypertarget{array_8c_a756ba04d08ed40f6b20c3021876fa53b}\label{array_8c_a756ba04d08ed40f6b20c3021876fa53b}} 
\index{array.c@{array.c}!embArray\_addPath@{embArray\_addPath}}
\index{embArray\_addPath@{embArray\_addPath}!array.c@{array.c}}
\doxyparagraph{\texorpdfstring{embArray\_addPath()}{embArray\_addPath()}}
{\footnotesize\ttfamily int emb\+Array\+\_\+add\+Path (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$}]{a,  }\item[{\mbox{\hyperlink{embroidery_8h_af29045dfeebafdcb66d114b390c4a686}{Emb\+Path}}}]{b }\end{DoxyParamCaption})}

Add a path {\itshape b} to the Emb\+Array {\itshape a} and it returns if the element was successfully added. \mbox{\Hypertarget{array_8c_a5adb6549f01b7f271bf8acd2cdc5da33}\label{array_8c_a5adb6549f01b7f271bf8acd2cdc5da33}} 
\index{array.c@{array.c}!embArray\_addPoint@{embArray\_addPoint}}
\index{embArray\_addPoint@{embArray\_addPoint}!array.c@{array.c}}
\doxyparagraph{\texorpdfstring{embArray\_addPoint()}{embArray\_addPoint()}}
{\footnotesize\ttfamily int emb\+Array\+\_\+add\+Point (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$}]{a,  }\item[{\mbox{\hyperlink{embroidery_8h_a835ccc3aedf71b57dca6130be87ea463}{Emb\+Point}}}]{b }\end{DoxyParamCaption})}

Add a point {\itshape b} to the Emb\+Array {\itshape a} and it returns if the element was successfully added. \mbox{\Hypertarget{array_8c_a7d4a63ac1958f13197dd7e7fd94f5d62}\label{array_8c_a7d4a63ac1958f13197dd7e7fd94f5d62}} 
\index{array.c@{array.c}!embArray\_addPolygon@{embArray\_addPolygon}}
\index{embArray\_addPolygon@{embArray\_addPolygon}!array.c@{array.c}}
\doxyparagraph{\texorpdfstring{embArray\_addPolygon()}{embArray\_addPolygon()}}
{\footnotesize\ttfamily int emb\+Array\+\_\+add\+Polygon (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$}]{a,  }\item[{\mbox{\hyperlink{embroidery_8h_a2d6988a5f4ba24d26c7eff65dbc9d029}{Emb\+Polygon}}}]{b }\end{DoxyParamCaption})}

Add a polygon {\itshape b} to the Emb\+Array {\itshape a} and it returns if the element was successfully added. \mbox{\Hypertarget{array_8c_a7fe0b8d0f83a3ed40ab37e9b93b8f4af}\label{array_8c_a7fe0b8d0f83a3ed40ab37e9b93b8f4af}} 
\index{array.c@{array.c}!embArray\_addPolyline@{embArray\_addPolyline}}
\index{embArray\_addPolyline@{embArray\_addPolyline}!array.c@{array.c}}
\doxyparagraph{\texorpdfstring{embArray\_addPolyline()}{embArray\_addPolyline()}}
{\footnotesize\ttfamily int emb\+Array\+\_\+add\+Polyline (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$}]{a,  }\item[{\mbox{\hyperlink{embroidery_8h_ab5563c868d8f8174d5be764808a647dd}{Emb\+Polyline}}}]{b }\end{DoxyParamCaption})}

Add a polyline {\itshape b} to the Emb\+Array {\itshape a} and it returns if the element was successfully added. \mbox{\Hypertarget{array_8c_a8d7d2de889cb8778bf80a6c776fb9938}\label{array_8c_a8d7d2de889cb8778bf80a6c776fb9938}} 
\index{array.c@{array.c}!embArray\_addRect@{embArray\_addRect}}
\index{embArray\_addRect@{embArray\_addRect}!array.c@{array.c}}
\doxyparagraph{\texorpdfstring{embArray\_addRect()}{embArray\_addRect()}}
{\footnotesize\ttfamily int emb\+Array\+\_\+add\+Rect (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$}]{a,  }\item[{\mbox{\hyperlink{embroidery_8h_ac2f33b151fc40a0da3b14379aa0ec653}{Emb\+Rect}}}]{b }\end{DoxyParamCaption})}

Add a rectangle {\itshape b} to the Emb\+Array {\itshape a} and it returns if the element was successfully added. \mbox{\Hypertarget{array_8c_a1d13609cda6e94f68c1bb7f21fab2cb1}\label{array_8c_a1d13609cda6e94f68c1bb7f21fab2cb1}} 
\index{array.c@{array.c}!embArray\_addStitch@{embArray\_addStitch}}
\index{embArray\_addStitch@{embArray\_addStitch}!array.c@{array.c}}
\doxyparagraph{\texorpdfstring{embArray\_addStitch()}{embArray\_addStitch()}}
{\footnotesize\ttfamily int emb\+Array\+\_\+add\+Stitch (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$}]{a,  }\item[{\mbox{\hyperlink{embroidery_8h_ae92ded87da0dcaaae8f7c7bc880fd1b0}{Emb\+Stitch}}}]{b }\end{DoxyParamCaption})}

Add a stitch {\itshape b} to the Emb\+Array {\itshape a} and it returns if the element was successfully added. \mbox{\Hypertarget{array_8c_ae7afecc6b39df1016ccda59227922483}\label{array_8c_ae7afecc6b39df1016ccda59227922483}} 
\index{array.c@{array.c}!embArray\_addVector@{embArray\_addVector}}
\index{embArray\_addVector@{embArray\_addVector}!array.c@{array.c}}
\doxyparagraph{\texorpdfstring{embArray\_addVector()}{embArray\_addVector()}}
{\footnotesize\ttfamily int emb\+Array\+\_\+add\+Vector (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$}]{a,  }\item[{\mbox{\hyperlink{embroidery_8h_a16fa26764453571074cb85a7574738d4}{Emb\+Vector}}}]{b }\end{DoxyParamCaption})}

Add a vector {\itshape b} to the Emb\+Array {\itshape a} and it returns if the element was successfully added. \mbox{\Hypertarget{array_8c_a60f927b9cef227b5c19a8625580a9bad}\label{array_8c_a60f927b9cef227b5c19a8625580a9bad}} 
\index{array.c@{array.c}!embArray\_copy@{embArray\_copy}}
\index{embArray\_copy@{embArray\_copy}!array.c@{array.c}}
\doxyparagraph{\texorpdfstring{embArray\_copy()}{embArray\_copy()}}
{\footnotesize\ttfamily void emb\+Array\+\_\+copy (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$}]{dst,  }\item[{\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$}]{src }\end{DoxyParamCaption})}

Copies all entries in the Emb\+Array struct from {\itshape src} to {\itshape dst}. \mbox{\Hypertarget{array_8c_a67090c780a2818616877fb42b3a42e5c}\label{array_8c_a67090c780a2818616877fb42b3a42e5c}} 
\index{array.c@{array.c}!embArray\_create@{embArray\_create}}
\index{embArray\_create@{embArray\_create}!array.c@{array.c}}
\doxyparagraph{\texorpdfstring{embArray\_create()}{embArray\_create()}}
{\footnotesize\ttfamily \mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$ emb\+Array\+\_\+create (\begin{DoxyParamCaption}\item[{int}]{type }\end{DoxyParamCaption})}

Allocates memory for an Emb\+Array of the type determined by the argument {\itshape type}. \mbox{\Hypertarget{array_8c_a2c70d3ca840560a5f9884f63f06f15bf}\label{array_8c_a2c70d3ca840560a5f9884f63f06f15bf}} 
\index{array.c@{array.c}!embArray\_free@{embArray\_free}}
\index{embArray\_free@{embArray\_free}!array.c@{array.c}}
\doxyparagraph{\texorpdfstring{embArray\_free()}{embArray\_free()}}
{\footnotesize\ttfamily void emb\+Array\+\_\+free (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$}]{a }\end{DoxyParamCaption})}

Free the memory of Emb\+Array {\itshape a}, recursively if necessary. \mbox{\Hypertarget{array_8c_a50c23acfd8e099acd98cc99bc01801ab}\label{array_8c_a50c23acfd8e099acd98cc99bc01801ab}} 
\index{array.c@{array.c}!embArray\_resize@{embArray\_resize}}
\index{embArray\_resize@{embArray\_resize}!array.c@{array.c}}
\doxyparagraph{\texorpdfstring{embArray\_resize()}{embArray\_resize()}}
{\footnotesize\ttfamily int emb\+Array\+\_\+resize (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{embroidery_8h_aebe8b1561a59d167cfe6613863a671ca}{Emb\+Array}} $\ast$}]{a }\end{DoxyParamCaption})}

Resizes the array {\itshape a} to be CHUNK\+\_\+\+SIZE entries longer if and only if the amount of room left is less than 3 entries. 